<?php

require_once("../private/system/dycmsapi.php");

try {
	
dyInit();
uiLoadLibrary('client');
uiLoadLibrary('page');
uiLoadLibrary('recc');

//
// Create the page
//

$page = new cHtmlPage();

$page->AddChild($hdr = new cHtmlWrapperTag('div', array(
	'class' => 'header')));

$page->AddChild($search = new cHtmlWrapperTag('div', array(
	'class' => 'searchBar')));


$page->AddChild($main = new cHtmlWrapperTag('div', array(
	'class' => 'main')));

$hdr->AddChild('ReccThis.com beta');

$page->SetContentNode($main);

$page->AddHtmlHeader(<<<HTMLEND
<link rel="stylesheet" href="recc.css" />
<script src="nav.js"></script>
HTMLEND
);

$page->AddMetaData('keywords', 'kernel,os');

$search->AddChild(new modTagSearch());

//
// Process commands
//

processCmsCommands($page);

$page->Display();

dyEnd();

}
catch(Exception $e)
{
	$ex = new cUiException($e);
	$ex->Display();
}

?>